﻿using System.Dynamic;

namespace Basic.FormRemoteModel.PageCalculate.Model
{
    public class ChartResult
    {
        /// <summary>
        /// x轴值
        /// </summary>
        public ChartLabel? XLabel { get; set; }

        /// <summary>
        /// 内容()
        /// </summary>
        public ChartLabel? Legend { get; set; }
        /// <summary>
        /// 细分
        /// </summary>
        public Segment[] Segment { get; set; }

        public ExpandoObject[] Rows
        {
            get;
            set;
        }
    }
    public struct Segment
    {
        public long Id { get; set; }
        public string Key { get; set; }

        public string Value { get; set; }
    }
    public struct ChartLabel
    {
        public long Id { get; set; }
        public string Name { get; set; }

        public KeyValuePair<string, string>[] Label { get; set; }
    }
}
